package com.hxd.mall.utils.open

import android.text.TextUtils
import android.view.View

object ViewUtils {

    fun isHidden(str: String?, view: View): Boolean {
        val b = TextUtils.isEmpty(str) || "0.00" == str || "0" == str
        if (b) {
            view.visibility = View.GONE
        } else {
            view.visibility = View.VISIBLE
        }
        return b
    }
}